home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / source / gurumode / guru-doc.txt < prev   
Text File  |  1993-01-16  |  4KB  |  73 lines

  1. Per Ole Klemetsrud
  2. Hertug Skulesgt. 15c
  3. 0650 Oslo
  4. Norway
  5.                             Oslo 1-12-1993
  6. Notes on GuruMode.
  7.  
  8. These two routines were intentionally written for the X-sharp project
  9. in the graphics column of Dr. Dobbs Journal.  The project used a 320x240x256
  10. resolution because that was regarded as an absolute maximum when it came to
  11. 256 color page-flipping on standard VGA's.  It was my intention that the 
  12. GuruMode routine should be released to the public in this forum, but
  13. alas, 4 months after I sent the routine - they still haven't mentioned it.
  14.  
  15. Technicaly speaking it is not such deep wizardry as someone might think it is.
  16. First of all one sets the addressing to tweak mode, then alters the "physical"
  17. and "theoretical" size of the display.  To keep it as safe and compatible
  18. as possible, I used vertical timings from BIOS modes 10h and 12h.  
  19. The vertical 400 resolution is simply achieved by setting character heigth
  20. (the maximum scanline register) to 0 instead of 1. 
  21.  
  22. The horizontal 360 pixels part was the tricky one, I got the value for the
  23. Horizontal Total register from anonymous source and based the retrace and
  24. blanking periods on BIOS mode 10h and 12h.
  25. If you alter the HT register and don't have a multisyncing monitor, it blows 
  26. up (actually it just turns black and stay black until you turn the power of.),
  27. so if you love your monitor - leave this value as it is!
  28.  
  29. Non-standard VGA modes have been around for a while, e.g. an early PD game
  30. by XXXXXX used 360x480x256 resolution.  Source have been hard to get, and
  31. far to often anonymous because of tampering.  Another 'con' of these
  32. source's were non-standard periods, and lots of unneccesary instructions and
  33. OUT's.  I wrote GuruMode as slick as possible (whithout getting ridiculous)
  34. and only with standard periods taken and based on (when not appliable)
  35. from the video BIOS.
  36.  
  37. This code has been tested successfully on a variety of VGA's including
  38. an old PS/2 model 80, Trident 8900CS, Tseng ET4000 and various
  39. "anonymous", including a B/W Monochrome portable.
  40.  
  41. Then to the part I hate in all doc's which seems very unfriendly, but which
  42. unfortunately is neccesary because there are a lot of braindead lamer's
  43. out there in hacker land!
  44.  
  45. This file, GURU-DOC.TXT along with GURU-C.ASM and GURU-ASM.ASM may 
  46. be distributed and copied freely provided that:
  47.  
  48.     1) All three files are included in archive
  49.     2) The files are not modified in any way, including modifications,
  50.     possible improvements and (especially) changing of copyrigth notice!
  51.  
  52.     (I know perfectly well that resolution can be increased by changing
  53.     a few registers, but PLEASE don't incorporate this (or anything else)
  54.     into GuruMode.  If you want fortune & glory, I suggest you use 
  55.     GuruMode as a basis with your own timings! Beware that resolution
  56.     above IBM standars are monitor dependent.  My monitor handles
  57.     372x516, while others may handle less!)
  58.  
  59.     3) No charge beyond a cost-recovery fee is made
  60.  
  61. DISCLAIMER
  62. Although both I and others have tested the code which comprises GuruMode,
  63. it is entirely possible that GuruMode may malfunction in environments or
  64. under circumstances in which it has not been tested.  This code is
  65. provided AS IS, and the author disclaims any and all responsibility for
  66. damages (both consequential and incidental) resulting from the use or
  67. misuse of GuruMode.  Sole responsibility for determining the suitability
  68. of the code rests with the user.
  69.  
  70. Enough talk, share & enjoy, and make beautiful games and demos with these
  71. new modes - afther all, that's why I made them in the first place!
  72.  
  73.